home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CHIP_CD_2004-07.iso / games / star / starwars_thebattleofyavin_v10.exe / {app} / shaders / common.shader next >
Encoding:
Text File  |  2003-10-14  |  2.5 KB  |  84 lines

  1. //#####################################################################//
  2. //                     TrueVision8 Shader Script                       //
  3. //#####################################################################//
  4. //                                                                     //
  5. //  Common Shader for Flames                           //
  6. //                                       //
  7. // You have to define the used textures before creating the Shader     //
  8. // At the left, the texture filename (can be in a PAK file)            //
  9. // At the right, the texture name that will be used in the engine      //
  10. //                                       //    
  11. //#####################################################################//
  12.  
  13. TEXTURES 13
  14. shaders\expl1.jpg > Explosion1
  15. shaders\expl2.jpg > Explosion2
  16. shaders\expl3.jpg > Explosion3
  17. shaders\expl4.jpg > Explosion4
  18. shaders\expl5.jpg > Explosion5
  19. shaders\expl6.jpg > Explosion6
  20. shaders\expl7.jpg > Explosion7
  21. shaders\expl8.jpg > Explosion8
  22. shaders\elk1.jpg > Electrico1
  23. shaders\elk2.jpg > Electrico2
  24. shaders\elk3.jpg > Electrico3
  25. shaders\elk4.jpg > Electrico4
  26. shaders\deathstar.jpg > DeathStar1
  27.  
  28. //#####################################
  29. // Shaders Declarations. 
  30. //#####################################
  31.  
  32.  
  33. //
  34. // Explosion effect
  35. //
  36. SHADER Explosion
  37. {
  38.    Layer map1
  39.    {    
  40.  
  41.        //
  42.        // Texture Animation :
  43.        // Syntax : anim [FramePerSecond] [Tex1] [Tex2] ... [TexN] [0]
  44.        //
  45.  
  46.          anim 8 Explosion1 Explosion2 Explosion3 Explosion4 Explosion5 Explosion6 Explosion7 Explosion8 [0]
  47.  
  48.        // Blender functions
  49.        // Two ways : Blend [NO|ADD|ALPHA|COLOR|LIGHTMAP]
  50.        //            BlendFunc [ZERO|ONE|ALPHA|INVALPHA|COLOR|INVCOLOR|DESTCOLOR] [ONE|ZERO|SRCCOLOR|ALPHA|INVALPHA|COLOR|INVCOLOR]
  51.        //                             src blend                                    dest blend
  52.       
  53.      blendFunc ONE ONE
  54.          depthFunc NOWRITE
  55.  
  56.     }
  57. }   
  58.  
  59.  
  60. SHADER Electrico
  61. {
  62.    Layer map1
  63.    {    
  64.  
  65.        //
  66.        // Texture Animation :
  67.        // Syntax : anim [FramePerSecond] [Tex1] [Tex2] ... [TexN] [0]
  68.        //
  69.  
  70.          anim 16 Electrico1 Electrico2 Electrico3 Electrico4 [0]
  71.  
  72.        // Blender functions
  73.        // Two ways : Blend [NO|ADD|ALPHA|COLOR|LIGHTMAP]
  74.        //            BlendFunc [ZERO|ONE|ALPHA|INVALPHA|COLOR|INVCOLOR|DESTCOLOR] [ONE|ZERO|SRCCOLOR|ALPHA|INVALPHA|COLOR|INVCOLOR]
  75.        //                             src blend                                    dest blend
  76.       
  77.      blendFunc ONE ONE
  78.          depthFunc NOWRITE
  79.  
  80.     }
  81. }   
  82.  
  83.  
  84.